@echo off  
echo "STEP 1: check winget status."
winget --version >nul 2>&1  
if errorlevel 1 (  
    echo "ERROR! can't find winget, please download and install it from https://github.com/microsoft/winget-cli/releases/"  
    start https://github.com/microsoft/winget-cli/releases/  
) else (  
    echo "SUCCESS! winget is installed."
echo "STEP 1: check clink status."
    clink --version >nul 2>&1  
    if errorlevel 1 (  
        echo "ERROR! can't find clink, will install it automately..."  
    ) else (  
        echo "SUCCESS! clink is installed."  
    )  
)

powershell -ExecutionPolicy Bypass -File "setup.ps1"
